package com.spring.learn;

/**
 * UserDAO：对用户管理功能的抽象
 * UserDAOImpl：用来实现具体如何管理用户
 */
public class UserDAOImpl implements UserDAO {
    /**
     * 将用户user保存起来
     * @param user
     */
    @Override
    public void save(User user) {
        System.out.println("insert into user = " + user);
    }

    /**
     * 通过用户名和密码查询
     * @param name
     * @param password
     */
    @Override
    public void queryUserByNameAndPassword(String name, String password) {
        System.out.println("query User name = " + name+" password = "+password);
    }
}